package homeWork;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test1 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("D:\\a\\a.txt");
        FileOutputStream fos = new FileOutputStream("D:\\a\\b.txt");
        int len;
        while ((len=fis.read())!=-1){
            fos.write(len);
        }
    }
}
